<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="css/style.css">
</head>
<body>

	<?php foreach($db as $id => $d):?>
			
			<li>
				<h2><?php echo $d['title'];?></h2>
				<img src="<?php echo $d['thump'];?>" alt="">
				<p><?php echo $d['body'];?></p>
				<a href="shop.php?id=<?php echo $id;?>">查看商品详情</a>

			</li>



	<?php endforeach;?>
	
</body>
</html>